package com.bdqn.qnnews.search.vo;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@Schema(name = "用户搜索响应数据 vo")
public class UserSearchRespVo {
    @Schema(description = "文章id")
    private Long id;

    @Schema(description = "上架时间")
    private LocalDateTime publishTime;

    @Schema(description = "图片布局")
    private Integer layout;

    @Schema(description = "图片地址")
    private String images;

    @Schema(description = "静态页地址")
    private String staticUrl;

    @Schema(description = "作者id")
    private Long authorId;

    @Schema(description = "文章标题")
    private String title;

    @Schema(description = "文章高亮标题")
    @JsonProperty("h_title")
    private String hTitle;
}